﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SafeHomeSystem
{
    class Monitor_AudibleAlarm
    {
        private string type = "zhengchang";
        private string condition = "zhengchang";
        public string telephoneline()
        {
            if (condition == "fire")
            {
                return "119";
            }
            else if (condition == "danger")
            {
                return "110";
            }
            else if (condition == "ill")
            {
                return "120";
            }
            else 
            {
                return "none";
            }
        }
        public bool alarm()
        {
            if (type == "high")
            {
                return true;
            }
            else
            {
                return false;
            }
        }
        public void quti()
        {
            type = "zhengchang";
            condition = "zhengchang";
        }


    }
}
